import typescript from 'rollup-plugin-typescript2'
import clear from 'rollup-plugin-clear'
import postcss from 'rollup-plugin-postcss'
import { banner } from './settings.mjs'

export default {
    input: 'src/main.ts',
    output: {
        file: 'dist/main.js',
        format: 'iife',
        banner: banner,
    },
    plugins: [clear({ targets: ['dist'] }), postcss(), typescript({ tsconfig: './tsconfig.json' })],
}
